#ifndef RECBOX_H
#define RECBOX_H

#include <QWidget>
#include<QJsonArray>

namespace Ui {
class RecBox;
}

class RecBox : public QWidget
{
    Q_OBJECT

public:
    explicit RecBox(QWidget *parent = nullptr);
    ~RecBox();

    void recBoxUi(QJsonArray list,int row);

private slots:
    void on_btUp_clicked();

    void on_btDown_clicked();

private:
    void creatRecBoxItem();

private:
    Ui::RecBox *ui;
    int row;
    int col;
    QJsonArray imageList; //照片路径和文本信息

    int count;    //将imageList分组
    int currIndex;// 当前显示哪一组
};

#endif // RECBOX_H
